/**
 * Created by Administrator on 2018/7/23.
 */
document.addEventListener('DOMContentLoaded',function(){
    var resizeEvt = 'orientationchange' in window ? 'orientationchange' : 'resize'
    function resize() {
        var html = document.documentElement;
        if(html.clientWidth > 1300){
            if(html.clientWidth < 1920){
                html.style.fontSize = ~~(html.clientWidth / 20) + 'px'
            }else{
                html.style.fontSize = '96px'
            }
        }else{
            html.style.fontSize = '80px'
        }
    };
    resize()
    window.addEventListener(resizeEvt, resize, false)
})